package com.zhao.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhao.bean.Orders;
import com.zhao.bean.PageParam;
import com.zhao.bean.User;
import com.zhao.dto.OrdersDto;
import org.springframework.transaction.annotation.Transactional;

import java.text.ParseException;

/**
 * @author HK
 */

public interface OrdersService extends IService<Orders> {

    @Transactional
    void submit(Orders orders, User user);

    public void submit(Orders orders);

    //历史订单
    IPage<OrdersDto> selectpage(int page, int pageSize);

    /**
     * 后台订单分页查询
     * @param pageParam
     * @return
     */
    IPage<Orders> findPage(PageParam pageParam) throws ParseException;
}
